import { IndexViewEngine } from './index-view.engine';
import { IMobViewController, IViewController } from '@ibiz-template/runtime';
import { MobMDViewEngine } from './mob-md-view-engine';

export const IBizViewEngine = {
  install: (): void => {
    ibiz.engine.register(
      `VIEW_APPINDEXVIEW`,
      (c: IViewController) => new IndexViewEngine(c),
    );
    ibiz.engine.register(
      `VIEW_MobMDView`,
      (c: IMobViewController) => new MobMDViewEngine(c),
    );
  }
}